-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use new usable hosts endpoint #1647
base: dev
Are you sure you want to change the base?
Conversation
case api.EventSettingUpdate: | ||
log = log.With("gouging", e.GougingSettings != nil, "pinned", e.PinnedSettings != nil, "upload", e.UploadSettings != nil, "ts", e.Timestamp) | ||
c.handleSettingUpdate(e) | ||
c.cache.Invalidate(cacheKeyUsableHosts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Took a bit of a shortcut here because we're going to drastically overhaul the cache anway.
…to pj/usable-hosts-cache
…erd into pj/usable-hosts-cache
acd684e
to
178db62
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good but got some conflicts now
if err != nil && !utils.IsErr(err, api.ErrSlabNotFound) { | ||
var objects []api.ObjectMetadata | ||
if res, err := w.bus.Objects(ctx, "", api.ListObjectOptions{SlabEncryptionKey: slab.EncryptionKey}); err != nil { | ||
w.logger.Errorf("failed to list objects for slab key; %w", err) | ||
w.logger.Error("failed to list objects for slab key; %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using Error
with %v
as a formatting directive.
No description provided.